package com.gem.back.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gem.back.entity.AoaDept;
import com.gem.back.entity.AoaUser;
import com.gem.back.mapper.AoaDeptMapper;
import com.gem.back.service.IAoaDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.math.BigInteger;
import java.text.ParseException;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hhhy
 * @since 2020-02-22
 */
@Service
public class AoaDeptServiceImpl extends ServiceImpl<AoaDeptMapper, AoaDept> implements IAoaDeptService {
    @Autowired
    private AoaDeptMapper aoaDeptMapper;

    @Override
    public AoaDept findDeptByName(String userName) {
        return aoaDeptMapper.findDeptByName(userName);
    }

    @Override
    public AoaDept findOne(Integer id) {
        return aoaDeptMapper.selectOneById(id);
    }

}
